<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Role;


/**
 * Class Organization
 * @package App\Models
 * @version November 14, 2017, 2:07 am UTC
 *
 * @property string name
 * @property in parent_id
 */
class Menu extends Model
{
    use SoftDeletes;

    public $table = 'menu';

    public $hidden = [

    ];

    protected $dates = ['deleted_at'];


    public $fillable = [
        'name',
        'sort',
        'code',
        'type',
        'pid',
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' => 'string',
        'code' => 'string',
    ];


}
